<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="f"  uri="http://java.sun.com/jsf/core"%>
<%@ taglib prefix="h"  uri="http://java.sun.com/jsf/html"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Formulário para Efetuar Login</title>
</head>
<body>
<h3>Efetue Login no Sistema de Classificados Online</h3>
<f:view>
	<h:outputText id="o2" value="#{usuarioMB.mensagem}" rendered="#{usuarioMB.temMensagem}" style="color: #0000FF"></h:outputText>
		<h:form id="f1">
			<h:panelGrid id="p1" columns="2" border="1">
				<h:outputLabel id="o1" value="Login: " ></h:outputLabel>
				<h:inputText id="i1" value="#{usuarioMB.login}"></h:inputText>
				<h:outputLabel id="o2" value="Senha: "></h:outputLabel>
				<h:inputSecret id="i2" value="#{usuarioMB.senha}"></h:inputSecret>
			</h:panelGrid>
			<h:commandButton id="c1" value="Efetuar Login" action="#{usuarioMB.autenticar}"></h:commandButton>
			<br><h:commandLink id="c2" value="Voltar" action="index.jsp"></h:commandLink>
		</h:form>
	</f:view>
</body>
</html>